mod cli_cmd_event;
mod the_cli;

use the_cli::cli;

use cli_cmd_event::{fix_download, fix_launch, fix_search};

fn main() {
  let args = cli().get_matches();

  match args.subcommand() {
    Some(("search", sub_mat)) => fix_search(sub_mat),
    Some(("download", sub_mat)) => fix_download(sub_mat),
    Some(("boot", sub_mat)) => fix_launch(sub_mat),
    _ => {
      eprintln!("Not support subcommand now, mayve latter support ?");
    }
  }
}
